#include <bits/stdc++.h>
using namespace std;

using ll = long long;

int a, b;
int main() {
    cin >> a >> b;
    ll base = 1;
    for (int i = a; i < b; i++) base *= 32ll;
    cout << base << endl;
    return 0;
}